package yogiro.to;

public class TourInfoTO {
	private int tourNo;
	private String tourTitle;
	private String tourContent;
	private String tourWriter;
	private String tourWritedate;
	private int tourViewcount;
	private String tourWriterType;
	private int tourRecommend;
	
	public TourInfoTO(int tourNo, String tourTitle, String tourContent,
			String tourWriter, String tourWritedate, int tourViewcount,
			String tourWriterType, int tourRecommend) {
		super();
		this.tourNo = tourNo;
		this.tourTitle = tourTitle;
		this.tourContent = tourContent;
		this.tourWriter = tourWriter;
		this.tourWritedate = tourWritedate;
		this.tourViewcount = tourViewcount;
		this.tourWriterType = tourWriterType;
		this.tourRecommend = tourRecommend;
	}
	public TourInfoTO(String tourTitle, String tourContent, String tourWriter,
			String tourWriterType) {
		super();
		this.tourTitle = tourTitle;
		this.tourContent = tourContent;
		this.tourWriter = tourWriter;
		this.tourWriterType = tourWriterType;
	}
	
	public TourInfoTO(int tourNo, String tourTitle, String tourContent) {
		super();
		this.tourNo = tourNo;
		this.tourTitle = tourTitle;
		this.tourContent = tourContent;
	}
	
	public TourInfoTO() {
		super();
	}
	public int getTourNo() {
		return tourNo;
	}
	public void setTourNo(int tourNo) {
		this.tourNo = tourNo;
	}
	public String getTourTitle() {
		return tourTitle;
	}
	public void setTourTitle(String tourTitle) {
		this.tourTitle = tourTitle;
	}
	public String getTourContent() {
		return tourContent;
	}
	public void setTourContent(String tourContent) {
		this.tourContent = tourContent;
	}
	public String getTourWriter() {
		return tourWriter;
	}
	public void setTourWriter(String tourWriter) {
		this.tourWriter = tourWriter;
	}
	public String getTourWritedate() {
		return tourWritedate;
	}
	public void setTourWritedate(String tourWritedate) {
		this.tourWritedate = tourWritedate;
	}
	public int getTourViewcount() {
		return tourViewcount;
	}
	public void setTourViewcount(int tourViewcount) {
		this.tourViewcount = tourViewcount;
	}
	public String getTourWriterType() {
		return tourWriterType;
	}
	public void setTourWriterType(String tourWriterType) {
		this.tourWriterType = tourWriterType;
	}
	public int getTourRecommend() {
		return tourRecommend;
	}
	public void setTourRecommend(int tourRecommend) {
		this.tourRecommend = tourRecommend;
	}
	@Override
	public String toString() {
		return "TourInfoTO [tourNo=" + tourNo + ", tourTitle=" + tourTitle
				+ ", tourContent=" + tourContent + ", tourWriter=" + tourWriter
				+ ", tourWritedate=" + tourWritedate + ", tourViewcount="
				+ tourViewcount + ", tourWriterType=" + tourWriterType
				+ ", tourRecommend=" + tourRecommend + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((tourContent == null) ? 0 : tourContent.hashCode());
		result = prime * result + tourNo;
		result = prime * result + tourRecommend;
		result = prime * result
				+ ((tourTitle == null) ? 0 : tourTitle.hashCode());
		result = prime * result + tourViewcount;
		result = prime * result
				+ ((tourWritedate == null) ? 0 : tourWritedate.hashCode());
		result = prime * result
				+ ((tourWriter == null) ? 0 : tourWriter.hashCode());
		result = prime * result
				+ ((tourWriterType == null) ? 0 : tourWriterType.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TourInfoTO other = (TourInfoTO) obj;
		if (tourContent == null) {
			if (other.tourContent != null)
				return false;
		} else if (!tourContent.equals(other.tourContent))
			return false;
		if (tourNo != other.tourNo)
			return false;
		if (tourRecommend != other.tourRecommend)
			return false;
		if (tourTitle == null) {
			if (other.tourTitle != null)
				return false;
		} else if (!tourTitle.equals(other.tourTitle))
			return false;
		if (tourViewcount != other.tourViewcount)
			return false;
		if (tourWritedate == null) {
			if (other.tourWritedate != null)
				return false;
		} else if (!tourWritedate.equals(other.tourWritedate))
			return false;
		if (tourWriter == null) {
			if (other.tourWriter != null)
				return false;
		} else if (!tourWriter.equals(other.tourWriter))
			return false;
		if (tourWriterType == null) {
			if (other.tourWriterType != null)
				return false;
		} else if (!tourWriterType.equals(other.tourWriterType))
			return false;
		return true;
	}
	
	
}
	